package cn.lanqiao.bigDate.entity.data;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @description 出版社表
 * @author lxxing
 * @date 2022-03-15
 */
@Data
@ApiModel("出版社表")
@TableName("data_pbhouse")
public class DataPbhouse {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 出版社名
     */
    @ApiModelProperty("出版社名")
    private String pbhouseName;
    /**
     * 市场占有率
     */
    @ApiModelProperty("市场占有率")
    private Float marketShare;
    /**
     * 畅销书占有率
     */
    @ApiModelProperty("畅销书占有率")
    private Float bestSeller;
    /**
     * 新品占有率
     */
    @ApiModelProperty("新品占有率")
    private Float newShare;
    /**
     * 新品贡献率
     */
    @ApiModelProperty("新品贡献率")
    private Float newContribution;
    /**
     * 综合热度
     */
    @ApiModelProperty("综合热度")
    private Float popular;
    /**
     * 总销售批次
     */
    @ApiModelProperty("总销售批次")
    private Float totalBatch;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;
    /**
     * 创建者
     */
    @ApiModelProperty("创建者")
    private String createBy;
    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;

    /**
     * 更新者
     */
    @ApiModelProperty("更新者")
    private String updateBy;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "DataPbhouse{" +
                "id=" + id +
                ", pbhouseName='" + pbhouseName + '\'' +
                ", marketShare=" + marketShare +
                ", bestSeller=" + bestSeller +
                ", newShare=" + newShare +
                ", newContribution=" + newContribution +
                ", popular=" + popular +
                ", totalBatch=" + totalBatch +
                ", createTime=" + createTime +
                ", createBy='" + createBy + '\'' +
                ", updateTime=" + updateTime +
                ", updateBy='" + updateBy + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPbhouseName() {
        return pbhouseName;
    }

    public void setPbhouseName(String pbhouseName) {
        this.pbhouseName = pbhouseName;
    }

    public Float getMarketShare() {
        return marketShare;
    }

    public void setMarketShare(Float marketShare) {
        this.marketShare = marketShare;
    }

    public Float getBestSeller() {
        return bestSeller;
    }

    public void setBestSeller(Float bestSeller) {
        this.bestSeller = bestSeller;
    }

    public Float getNewShare() {
        return newShare;
    }

    public void setNewShare(Float newShare) {
        this.newShare = newShare;
    }

    public Float getNewContribution() {
        return newContribution;
    }

    public void setNewContribution(Float newContribution) {
        this.newContribution = newContribution;
    }

    public Float getPopular() {
        return popular;
    }

    public void setPopular(Float popular) {
        this.popular = popular;
    }

    public Float getTotalBatch() {
        return totalBatch;
    }

    public void setTotalBatch(Float totalBatch) {
        this.totalBatch = totalBatch;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
